﻿namespace Kevin.Code.Generator.Api
{
    /// <summary>
    /// 生成代码规则
    /// </summary>
    public class CodeRuleInput
    {
        /// <summary>
        /// 链接id
        /// </summary>
        public long DBLink_Id { get; set; }

        /// <summary>
        /// 表名称
        /// </summary>
        public string Table_Name { get; set; }

        /// <summary>
        /// 实体名称(中文)
        /// </summary>
        public string ModelName_CN { get; set; }

        /// <summary>
        /// 命名空间
        /// </summary>
        public string NameSpace { get; set; }

        /// <summary>
        /// 字段规则
        /// </summary>
        public List<FieldRuleInput> Field_Rules { get; set; }
    }

    /// <summary>
    /// 字段规则
    /// </summary>
    public class FieldRuleInput
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Field_Name { get; set; }

        /// <summary>
        /// 是否为搜索条件
        /// </summary>
        public bool Search_Display { get; set; }

        /// <summary>
        /// 列表展示
        /// </summary>
        public bool List_Display { get; set; }

        /// <summary>
        /// 编辑是否展示
        /// </summary>
        public bool Edit_Display { get; set; }
    }
}
